import Vue from 'vue'
import App from './App.vue'
import router from "@/router/index";
import TypeNav from "@/components/TypeNav";
import store from "@/store/index";
import mock from "@/mock/mockServer";
import "swiper/css/swiper.min.css"; // swiper插件css
import Carousel from "@/components/Carousel";
import Pagination from "@/components/Pagination";

Vue.config.productionTip = false;

// 注册全局组件
Vue.component(TypeNav.name, TypeNav);
Vue.component(Carousel.name, Carousel);
Vue.component(Pagination.name, Pagination); // 分页器

new Vue({
    render: h => h(App),
    router: router,
    store: store,
    beforeCreate() {
        Vue.prototype.$bus = this; // 配置全局事件总线
    }
}).$mount('#app');
